define(['WebPDF', 
	"./ngWidthDirective",
	"./ngHeightDirective",
	"./PDFPageContainerDirective",
	"./PDFPageDirective",
	"./LeftPanelDirective",
	"./PDFDocController"], function (WebPDF) {
		'use strict';
	WebPDF.directive('pdfdocviewer', [function () {
		return {
			restrict: 'AE',
			templateUrl: 'js/pdfview/tpl/pdfdocviewer.html',		
			link: function ($scope, element, iAttrs) {	
				$scope.$watchGroup(["viewerHeight", "viewerWidth"], function(newValue) {	
					element.height(newValue[0]);
					element.width(newValue[1]);
				});				
			}
		};
	}]);
});